﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Lan.Business
{
    public class BaseRepository<T> : IBaseRepository<T>
    {
        protected ISqlSugarClient Db = DbContext.Default();

        public List<T> GetList()
        {
            return Db.Queryable<T>().ToList();
        }
    }
}
